Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not validate options when finding non-matching #8372

Merged
merged 1 commit into from
Feb 17, 2021

Conversation

dcbaker
Copy link
Member

@dcbaker dcbaker commented Feb 16, 2021

This is a) useless because it's only used to print which options are not
default, and b) harmful because it can result in cases where things
break, like in projects that set a standard that the chosen compiler
doesn't support, but the project (or some subset) can be built with a
different standard.

Fixes: #8360

@dcbaker dcbaker added this to the 0.57.1 milestone Feb 16, 2021
@dcbaker dcbaker requested a review from jpakkane as a code owner February 16, 2021 22:17
@lgtm-com
Copy link

lgtm-com bot commented Feb 16, 2021

This pull request introduces 1 alert when merging c049b48 into f3727c6 - view on LGTM.com

new alerts:

  • 1 for Unused local variable

This is a) useless because it's only used to print which options are not
default, and b) harmful because it can result in cases where things
break, like in projects that set a standard that the chosen compiler
doesn't support, but the project (or some subset) can be built with a
different standard.

Fixes: mesonbuild#8360
@dcbaker dcbaker force-pushed the submit/fix-invalid-defaults branch from c049b48 to 181f4e2 Compare February 16, 2021 22:43
@jpakkane jpakkane merged commit 867963f into mesonbuild:master Feb 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Validation fails when overriding default_option c_std
2 participants